package com.xn.myyxcampus.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

import android.text.format.Time;
import android.util.Log;


public class TimeUtil {

	public static String getPushTime(long millis){
		Date dt = new Date();
		dt.setTime(millis*1000);
		SimpleDateFormat sf = new SimpleDateFormat("MM/dd HH:mm");
		String dateStr = sf.format(dt);
		
		return dateStr;
	}

	public static String getCurrrentTime(long millis)
	{	
		Date dt = new Date();
		dt.setTime(millis*1000);
		SimpleDateFormat sf = new SimpleDateFormat("yyyy/MM/dd HH:mm");
		String dateStr = sf.format(dt);	
		return dateStr;
	}



}
